function login(){

    api.openWin({
        name: 'login',
        url: '../html/login_win.html',
        reload:true,
        animation:{
          type:'fade',
          duration:300
        }
    });

}
function enterprise() {

  api.openWin({
      name: 'enterprise_dashboard',
      url: 'widget://html/enterprise/dashboard_win.html',
      bounces:false,
      animation:{
        type:'fade',
        duration:300
      },
      pageParam: {
          name: 'test'
      }
  });

}

function dashboard(){

    api.openWin({
        name: 'dashboard',
        url: '../html/dashboard_win.html',
        bounces:false,
        animation:{
          type:'fade',
          duration:300
        }
    });

}
function farmer(id){
  api.openWin({
      name: 'farmer',
      url: '../html/farmer_win.html',
      pageParam: {
          id: id
      },
      bounces:false,
      animation:{
        type:'fade',
        duration:300
      }
  });
}

function sheep(farmer){
  api.openWin({
      name: 'sheep',
      url: '../html/sheep_win.html',
      pageParam: {
          id: farmer
      },
      animation:{
        type:'fade',
        duration:300
      }
  });
}

function enterpriseSheep(){
  api.openWin({
      name: 'enterprise_sheep',
      url: 'widget://html/enterprise/sheep_win.html',
      pageParam: {
          name: 'test'
      }
  });

}
